home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwdee.dir / 00432_Script_432 < prev    next >
Text File  |  1994-11-15  |  3KB  |  131 lines

  1. on startMovie
  2.   global nowFrame
  3.   global horNess, currMM
  4.   global dialogOn
  5.   set dialogOn = FALSE
  6.   set currMM = "FLWWW"
  7.   puppetSprite 21, TRUE
  8.   puppetSprite 22, TRUE
  9.   puppetSprite 23, TRUE
  10.   set the immediate of sprite 23 to TRUE
  11.   set the stretch of sprite 23 to FALSE
  12.   puppetSprite 6, TRUE
  13.   repeat with i = 12 to 16
  14.     puppetSprite i, TRUE
  15.   end repeat
  16. end startMovie
  17.  
  18. on stepMovie
  19.   global nowFrame,currFrame
  20.   if nowFrame <> currFrame then
  21.     seeAlsoList
  22.     set currFrame = nowFrame
  23.   end if
  24. end stepMovie
  25.  
  26. on stopMovie
  27.   set the castNum of sprite 21 to 1050
  28.   puppetSprite 21, FALSE
  29.   put " " into field "SeeAlsoText"
  30.   updateStage
  31. end stopMovie
  32.  
  33. on saveLocals
  34.   global lastFrame, nowFrame, lastMovie
  35.   set lastFrame = nowFrame
  36.   set lastMovie = "FLWDEE"
  37. end saveLocals
  38.  
  39. on buttonState
  40.   global FrankNav, dialogOn
  41.   global bflag, noTx
  42.   
  43.   
  44.   if dialogOn = FALSE then
  45.     
  46.     sectionCheck
  47.     
  48.     -- don't check global buttons unless mouse is down at bottom
  49.     if (the mouseV > 200) or (bFlag = TRUE) then
  50.       doState
  51.       set bFlag = FALSE
  52.     end if
  53.     
  54.   else if dialogOn = TRUE then
  55.     if the mouseDown then
  56.       if the mouseCast <> the number of cast "glossDialog" then
  57.         beep
  58.       end if
  59.     end if
  60.   end if
  61.   
  62. end buttonState
  63.  
  64. on deBackStep
  65.   global nowFrame
  66.   puppetSprite 6, FALSE
  67.   if nowFrame = "de000sto001°°°" then
  68.     go to "de000sta074°°°" of movie "FLWDES"
  69.   else
  70.     go to (the frame - 1)
  71.   end if
  72. end deBackStep
  73.  
  74. on deForStep
  75.   global nowFrame
  76.   puppetSprite 6, FALSE
  77.   if nowFrame = "de000sto021°°°" then 
  78.     go to "de000acc001°°°" of movie "FLWDEA"
  79.   else
  80.     go to (the frame + 1)
  81.   end if
  82. end deForStep
  83.  
  84. on sectionCheck
  85.   global lastSprite, nowFrame, dialogOn
  86.   if dialogOn = FALSE then
  87.     if rollover(12) then
  88.       set the castNum of sprite 12 to 20
  89.     else
  90.       set the castNum of sprite 12 to 8
  91.     end if
  92.     
  93.     if rollover(13) then
  94.       set the castNum of sprite 13 to 21
  95.     else
  96.       set the castNum of sprite 13 to 9
  97.     end if
  98.     
  99.     if rollover(14) then
  100.       set the castNum of sprite 14 to 17
  101.     else
  102.       set the castNum of sprite 14 to 5
  103.     end if
  104.     
  105.     if rollover(15) then
  106.       set the castNum of sprite 15 to 18
  107.     else
  108.       set the castNum of sprite 15 to 6
  109.     end if
  110.   end if
  111. end sectionCheck
  112.  
  113. on textRoll txHt
  114.   global origLocV, topHat, dialogOn, SeeAlsoBox
  115.   if dialogOn = FALSE and SeeAlsoBox = FALSE then
  116.     set topHat = txHt + (the height of sprite 6 / 2)
  117.     if the width of sprite 6 > 300 then
  118.       if the mouseH > 229 and the mouseV > 363 and the mouseV < 431 then
  119.         set the locV of sprite 6 to topHat
  120.       else if (the mouseH > 610) or (the mouseH < 229) or (the mouseV > 431) or (the mouseV < txHt) then
  121.         set the locV of sprite 6 to 485
  122.       end if
  123.     else 
  124.       if the mouseH > 414 and the mouseV > 363 and the mouseV < 431 then
  125.         set the locV of sprite 6 to topHat
  126.       else if the mouseH > 610 or the mouseH < 414 or the mouseV > 431 or the mouseV < txHt then
  127.         set the locV of sprite 6 to 549
  128.       end if
  129.     end if
  130.   end if
  131. end textRoll